package stravel

class BlogEntry {
	
    String title
    String url
    String entrySummary
    static belongsTo = [blog:Blog,hotel:Hotel]

    static constraints = {
        blog(nullable:false)
        hotel(nullable:true)
        title blank:true
        url blank:false, urk:true
        entrySummary (nullable:true, blank:true,length:2000)
    }
}
